package com.pengpaishuzi.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
@Slf4j
public class TestController {

    @RequestMapping("/test1")
    public String test1() throws InterruptedException {
        log.info("调用test1方法：。。。。。。。。。。。");
        TimeUnit.SECONDS.sleep(1);
        return "test1";
    }

    @RequestMapping("/test2")
    public String test2() {
        return "test2";
    }
}
